-- GENERATED SPELL FOR [Bleeding Hollow Dark Shaman] --


function spell0_16873(pUnit, Event) --@Bloodlust,n/a--
pUnit:FullCastSpellOnTarget(6742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16873', 30273, 1)
end

function spell1_16873(pUnit, Event) --@Fire Nova Totem,Self--
if charge_disp ~= 'na' then
pUnit:FullCastSpellOnTarget(32062,pUnit)
local charge_disp = 'na'
end
pUnit:RegisterEvent('Sorts_16873', 1, 1)
end

function spell2_16873(pUnit, Event) --@Lightning Shield,n/a--
pUnit:FullCastSpellOnTarget(12550,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16873', 0, 1)
end

function spell3_16873(pUnit, Event) --@Raise Soul,Self--
pUnit:FullCastSpellOnTarget(34013,pUnit)
pUnit:RegisterEvent('Sorts_16873', 2500, 1)
end

function Sorts_16873(pUnit, Event)
local choix_sorts_16873 = math.random(0, 3)
if choix_sorts_16873 == 0 then
pUnit:RegisterEvent('spell0_16873', 1, 1)
end
if choix_sorts_16873 == 1 then
pUnit:RegisterEvent('spell1_16873', 1, 1)
end
if choix_sorts_16873 == 2 then
pUnit:RegisterEvent('spell2_16873', 1, 1)
end
if choix_sorts_16873 == 3 then
pUnit:RegisterEvent('spell3_16873', 1, 1)
end
end

function mob16873_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16873', math.random(1500, 3000), 1)
end

function mob16873_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16873_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16873_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16873, 1, 'mob16873_Action')
RegisterUnitEvent(16873, 2, 'mob16873_Leave')
RegisterUnitEvent(16873, 3, 'mob16873_Kill')
RegisterUnitEvent(16873, 4, 'mob16873_Die')
